﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Data.Entity.Infrastructure;
using HardMobInfra.Mapeamentos;

namespace HardMobInfra
{
	public class TopicInfoContext : DbContext
	{
		protected override void OnModelCreating(DbModelBuilder modelBuilder)
		{
			modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
			modelBuilder.Conventions.Remove<IncludeMetadataConvention>();


			modelBuilder.Configurations.Add(new TopicoConfiguration());
			modelBuilder.Configurations.Add(new UsuarioConfiguration());
			modelBuilder.Configurations.Add(new RegistroDebugConfiguration());
			modelBuilder.Configurations.Add(new RegistroMensagensConfiguration());
		}
	}
}
